package cn.hongwei;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Great
 * @email 1224028994@qq.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {

    private String name;

    private int age;

    @Override
    public boolean equals(Object person){
        Person p=(Person)person;
        return this.getName().equals(p.getName());
    }
}
